<?php

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$posts = query_posts('meta_key=featured_image');		

if (have_posts()) :

?>

<div id="featured-item"><ul id="featured-itemContent">

<?php while (have_posts()) :  the_post(); 

$link = get_post_meta($post->ID, "link", true); 
$image = get_post_meta($post->ID, "featured_image", true);
?>

<li class="featured-itemImage">                
 <a href="<?php if($link ==""){ echo get_permalink($post->ID); }else{ echo $link; } ?>" style="text-decoration:none;">
	<img src="<?php echo SPImage($image,"f"); ?>" alt="featured" />                 
  <span>                       
     <strong><?php echo $post->post_title ?></strong>            
        <b><?php echo substr(strip_tags($post->post_content),0,200) ?>.. </b> 
                       
       <?php if($GLOBALS['shopperpress']['price_tag'] =="yes"){ ?>
          	<em class="price"><br /><?php echo $_SESSION['currency_symbol']; ?> 
			<?php echo get_post_meta($post->ID, "price", true); ?></em>  
		<?php } ?> 
               
     </span>
     </a>
    </li>
    
<?php endwhile;  ?> 
                

<li class="clear featured-itemImage"></li></ul></div>
<!-- END ShopperPress Slider -->

<?php endif;  ?>